#include "OperationInfo.h"

OperationInfo::OperationInfo(unsigned long lat, float ene){

  this->latency = lat;
  this->energy = ene;

}

float OperationInfo::getPower(){

  return this->energy / ((float)this->latency);

}

float OperationInfo::getEnergy(){

  return this->energy;

}

unsigned long OperationInfo::getLatency(){

  return this->latency;

}

void OperationInfo::setLatency(unsigned long lat){
  this->latency = lat;
}


void OperationInfo::setEnergy(float ene){
  this->energy = ene;
}
